home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 26
/
Cream of the Crop 26.iso
/
printer
/
jcosub26.zip
/
SAVESCRI.JSR
< prev
next >
Wrap
Text File
|
1993-12-25
|
468b
|
22 lines
/* JACOsub SAVESCRIPT command demonstration.
This command causes JACOsub save the script currently in memory
to a the specified file.
SAVESCRIPT returns RESULT=0 if successful, or RESULT=1 if a problem
occurred.
*/
if ~arg() then do ; say 'No file name.' ; exit 1 ; end
parse arg filename
options results
address 'JACOsub'
'SAVESCRIPT' filename
if result then
say 'script failed to be written'
else
say 'script was written successfully'
exit result